package game.system;

import java.util.HashMap;
import java.util.Map;

public class SQL {
	private static Map<String,String> sqlMap = new HashMap();
	static{
		init();
	}
	
	private static void init(){
		sqlMap.put(null, "update t_xt_user set u_money=u_money+?  where u_id=?");

	}
	
	public static String getSql(String key){
		return sqlMap.get(key);
	}
	
	public static String getSql(Class key, String bj){
		return getSql(key.getName()+(bj==null?"":bj));
	}
	
	public static String getSql(Class key){
		return getSql(key.getName());
	}
	
}
